package com.carp.exception;

import lombok.Getter;

@Getter
public class ServiceException extends RuntimeException{
    private Integer code;

    //构造函数
    public ServiceException(Integer code,String msg){
        super(msg); //使用RuntimeException中的方法
        this.code = code;
    }
}
